class AdminMap {
  Admin admin;
  String token;

  AdminMap({this.admin, this.token});

  AdminMap.fromJson(Map<String, dynamic> json) {
    admin = json['admin'] != null ? new Admin.fromJson(json['admin']) : null;
    token = json['token'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.admin != null) {
      data['admin'] = this.admin.toJson();
    }
    data['token'] = this.token;
    return data;
  }
}

class Admin {
  int id;
  String phone;
  String name;
  int gender;
  int createTime;

  Admin({this.id, this.phone, this.name, this.gender, this.createTime});

  Admin.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    phone = json['phone'];
    name = json['name'];
    gender = json['gender'];
    createTime = json['create_time'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['phone'] = this.phone;
    data['name'] = this.name;
    data['gender'] = this.gender;
    data['create_time'] = this.createTime;
    return data;
  }
}